//
//(C) Copyright 2011 HongKong Airline.,Ltd. 
//
/**
 * buycarService
 *
 * 项目名称:代购系统
 *
 * @author Mengxiangliang
 *
 * 功能描述:
 * 
 * 历史版本:2013-01-04 v1.0.0 Mengxiangliang  创建:
 * 
 */
package com.gamutsoft.amb.buycar.service;
import java.util.List;
import java.util.Map;

import com.gamutsoft.amb.buycar.model.Buycar;
import com.gamutsoft.amb.commodity.model.Commodity;
import com.gamutsoft.amb.common.bean.QueryExample;
import com.gamutsoft.amb.common.exception.BusinessException;
import com.gamutsoft.amb.common.service.IGenericService;
import com.gamutsoft.amb.user.model.SystemUser;



public interface IBuycarService extends IGenericService<Buycar,Long> {
	/**
	 * 根据条件查询记录
	 * @author Mengxiangliang
	 * @param  QueryExample
	 * @return BuycarList
	 * @throws BusinessException
	 */
	public List<Map> searchBuycarList(QueryExample qe) throws BusinessException;
	
	/**
	 * 根据ID查询记录
	 * @author Mengxiangliang
	 * @param Long id
	 * @return Buycar
	 * @throws BusinessException
	 */
	public Buycar searchBuycarById(Long id) throws BusinessException;

	/**
	 *  删除记录
	 * @author Mengxiangliang	 
	 * @param id
	 * @throws BusinessException
	 */
	public void deleteBuycarById(Long id) throws BusinessException;
	
	/**
	 * 修改记录
	 * @author Mengxiangliang
	 * @param domain
	 * @throws BusinessException
	 */
	public void updateBuycar(Buycar domain) throws BusinessException;

	/**
	 * 新增记录
	 * @author Mengxiangliang
	 * @param domain
	 * @return
	 * @throws BusinessException
	 */
	public void createBuycar(Buycar domain) throws BusinessException;
	/**
	 * 添加购物车
	 */
	public void createBuyCarByGood(Commodity domain,SystemUser systemUser) throws BusinessException;
	/**
	 * 获取购物车商品
	 */
	public List<Map> searchGoodByUserId(Buycar domain) throws BusinessException;
	
}